﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RMSClass
{
    //[Serializable]
    [CompactFormatter.Attributes.Serializable()]
    public class OrderItem
    {
        // ---- itemID 属性 ----
        private string ii = "";

        public string itemID
        {
            get
            {
                return ii;
            }

            set
            {
                ii = value;
            }
        }
        // ---------------------

        // ---- foodID 属性 ----
        private string fi = "";

        public string foodID
        {
            get
            {
                return fi;
            }

            set
            {
                fi = value;
            }
        }
        // ---------------------

        // ---- orderID 属性 ---
        private string oi = "";

        public string orderID
        {
            get
            {
                return oi;
            }

            set
            {
                oi = value;
            }
        }
        // ---------------------


        // --- custNotes 属性 ---
        private string cn = "";

        public string custNotes
        {
            get
            {
                return cn;
            }

            set
            {
                cn = value;
            }
        }
        // ----------------------

        // ---- cookID 属性 -----
        private string ci = "";

        public string cookID
        {
            get
            {
                return ci;
            }

            set
            {
                ci = value;
            }
        }
        // ----------------------

        // --- itemState 属性 ---
        private string i = "";

        public string itemState
        {
            get
            {
                return i;
            }

            set
            {
                i = value;
            }
        }
        // ----------------------


        //扩展属性
        
        // --- foodName 属性 ---
        private string fn = "";

        public string foodName
        {
            get
            {
                return fn;
            }

            set
            {
                fn = value;
            }
        }
        // ----------------------


        /// <summary>
        /// 构造函数
        /// </summary>
        public OrderItem()
        {

        }

        /// <summary>
        /// 重载构造函数
        /// </summary>
        public OrderItem(string MyItemID, string MyFoodID, string MyOrderID, string MyCustNotes, string MyCookID, string MyItemState, string MyFoodName)
        {
            itemID = MyItemID;
            foodID = MyFoodID;
            orderID = MyOrderID;
            custNotes = MyCustNotes;
            cookID = MyCookID;
            itemState = MyItemState;
            foodName = MyFoodName;
        }
    }
}